package com.lwp.lambda;

import cn.hutool.core.map.MapUtil;
import org.apache.commons.collections4.MapUtils;

import java.util.*;

/**
 * CulMonyTest
 *
 * @author xxx
 */
public class CulMonyTest {

    public static void main(String[] args) {
        List<Person> list = new ArrayList<>();
        for (int i = 1; i <= 49 ; i++) {
            list.add(new Person(i,  new Random().nextDouble(), new Date()));
        }
        System.out.println(list);

        MapUtil.emptyIfNull(null);
    }
}

class Person {
    private Integer id;
    private int num;
    private String mony;
    private String name;
    private Date birthday;

    public Person(int i, double v, Date birthday){}
    public Person(int num, String mony, Date birthday) {
        this.num = num;
        this.mony = mony;
        this.birthday = birthday;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getMony() {
        return mony;
    }

    public void setMony(String mony) {
        this.mony = mony;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "Person{" +
                "num=" + num +
                ", mony=" + mony +
                ", name='" + name + '\'' +
                ", birthday=" + birthday +
                '}';
    }
}